<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/head_admin.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台登录</title>
<link rel="stylesheet" href="${ctx }/manage/css/admin.css" />
<script type="text/javascript">
	$(document).ready(function() {
			//初始化信息
			$.formValidator.initConfig( {
				formid : "Form1",
				alertmessage : true,
				onerror : function(msg) {
					alert(msg)
				}
			});
			//校验脚本
			$("#userName").formValidator().inputValidator( {
				min : 1,
				onerror : "用户名不能为空,请确认"
			});

			$("#password").formValidator().inputValidator( {
				min : 1,
				onerror : "密码不能为空,请确认"
			});
		});
	</script>
</head>
<body id="login">
	<div class="container">
		<div id="header">
			<div class="logo">
				<img src="${ctx }/common/images/LOGO1.png" />
			</div>
		</div>
		<div id="wrapper" class="clearfix">
			<div class="login_box">
				<div class="login_title">后台管理登录</div>
				<div class="login_cont">
 				 <form name="Form1" method="post" action="${ctx }/manage/user/managelogin.do" id="Form1">
						<table class="form_table">
							<col width="90px" />
							<col />
							<tr>
								<th>用户名：</th><td><input name="user_name" type="text" id="userName" class="normal" onKeyDown="if(event.keyCode==13){ document.getElementById('btnLogin').focus();event.keyCode=13;return true;}" alt="请填写用户名"/></td>
							</tr>
							<tr>
								<th>密码：</th><td><input name="user_password" type="password" id="password" class="normal" onKeyDown="if(event.keyCode==13){document.getElementById('btnLogin').focus();event.keyCode=13;return true;}" alt="请填写密码" /></td>
							</tr>
                            <em style="color: red">${msg }</em><span id="lblMessage"></span>
							<tr>
								<th></th><td><input class="submit" type="submit" name="ibtLogin" id="ibtLogin" value="登录" title="正确填写信息,点击登录"/><input class="submit" type="reset" value="取消" /></td>
							</tr>
						</table>
					</form>
				</div>
			</div>
		</div>
		<div id="footer"> Copyright &copy; 2012 All Rights Reserved 版权所有 

	</div>
	</div>
</body>
</html>
